package jlfm.lastfm.playlist;

import java.util.ArrayList;
import java.util.List;

public class LastFmRadioPlaylist {
	private String title;

	private List<PlaylistEntry> trackList = new ArrayList<PlaylistEntry>();

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<PlaylistEntry> getTrackList() {
		return trackList;
	}

	public void setTrackList(List<PlaylistEntry> trackList) {
		for (PlaylistEntry e : trackList) {
			e.setPlaylist(this);
		}
		this.trackList = trackList;
	}

	public int size() {
		return trackList.size();
	}

}
